package com.layui.ad.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

/**
* Created by Mybatis Generator 2018/12/13
*/
@Data
//@Component
//@TableName("sys_admin")
public class SysAdmin implements Serializable {
    private static final long serialVersionUID = 1L;

    /* */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /* 员工编号*/
    private String username;

    /* 密码*/
    private String password;

    /*头像*/
    private String avatar;

    /* 真实姓名 */
    private  String realname;

    /* 手机*/
    private String mobile;

    /* 状态*/
    private Integer status;

    /* 添加时间*/
    private Date createTime;

    /* 修改时间*/
    private Date loginTime;

    /* */
    private Integer loginNum;

    /* 备注*/
    private String remark;

    /* 角色ID*/
    private String roleIds;

    /* 性别 1:保密 2:男 3:女*/
    private Integer gender;

    /*生日*/
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private Date birthday;

    /*邮箱*/
    private String email;
}